import Types from '../../action/Types';

const defaultState = {
  theme: '#069'
};
export default function themeReducer (state = defaultState, action) {
  switch (action.type) {
    case Types.THEME_CHANGE:
      return {
        ...state,
        theme: action.theme
      };
    case Types.THEME_INIT:
      return {
        ...defaultState
      };
    default:
      return state;
  }
}